<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.pitaya.framework.common.StringUtils" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div>
	<div>
		<c:if test="${param.module=='talk'}">
			<a href="${ctx}/talk/create?redirectUrl=/talk/create" class="btn btn-large btn-success">
			<i class="icon-plus-sign icon-white"></i> 发布说说  </a>
		</c:if>
	</div>
	<h5>品酒社区</h5>
	<div class="separator"></div>
	<div>
		<c:forEach var="tasting" items="${tastingList}">
			<c:set var="title" value="${tasting.enName}/${tasting.chName}" />
			<div style="padding-top:10px;"><a href="${ctx}/talk/tasting/${tasting.id}" target="_blank" title="${title}">
				<%=StringUtils.substringWithChinese((String)pageContext.getAttribute("title"), 45)%></a>
			</div>
		</c:forEach>
	</div>
	
	<div style="padding-top:20px;"></div>
	<h5>热门说说</h5>
	<div class="separator"></div>
	<div>
		<c:forEach var="mostClick" items="${mostClickList}">
			<c:set var="title" value="${mostClick.title}" />
			<div style="padding-top:10px;"><a href="${ctx}/talk/detail/${mostClick.id}" target="_blank" title="${mostClick.title}">
				<%=StringUtils.substringWithChinese((String)pageContext.getAttribute("title"), 45)%></a>
			</div>
		</c:forEach>
	</div>
	
	<div style="padding-top:20px;"></div>
	<h5>收藏夹</h5>
	<div class="separator"></div>
	<div>
		<c:forEach var="favorite" items="${favoriteList}">
			<c:set var="title" value="${favorite.name}" />
			<div style="padding-top:10px;"><a href="${ctx}/talk/favorite/${favorite.id}" title="${favorite.title}">
				<%=StringUtils.substringWithChinese((String)pageContext.getAttribute("title"), 45)%></a></div>
		</c:forEach>
	</div>
</div>